<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <link rel="stylesheet" href="layui/css/layui.css">
    <script src="layui/layui.js"></script>
    <script src="layui/jquery-3.5.1.min.js"></script>
</head>
<body>
<style>
    .sidenav{
        margin-top: 10px;
    }
    .maincontent{
        height: 500px;
        float: right;
    }
    iframe{
        height: 95%;
        width: 90%;
        margin-top: 10px;
        margin-left: 20px;
        border-style: none;
    }
</style>
<div class="layui-main">
<%--    顶部导航菜单--%>
    <ul class="layui-nav">
        <li class="layui-nav-item">
            <a href="">控制台<span class="layui-badge">9</span></a>
        </li>
        <li class="layui-nav-item">
            <a href="">个人中心<span class="layui-badge-dot"></span></a>
        </li>
        <li class="layui-nav-item">
            <a href=""><img src="//t.cn/RCzsdCq" class="layui-nav-img">我</a>
            <dl class="layui-nav-child">
                <dd><a href="javascript:;">修改信息</a></dd>
                <dd><a href="javascript:;">安全管理</a></dd>
                <dd><a href="javascript:;">退了</a></dd>
            </dl>
        </li>
    </ul>

    <div class="layui-row">
        <%--侧边菜单--%>
        <div class="layui-col-md2 layui-col-sm2 sidenav">
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <!-- 侧边导航: <ul class="layui-nav layui-nav-tree layui-nav-side"> -->
                <li class="layui-nav-item layui-nav-itemed">
                    <a href="javascript:;">默认展开</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/book/getAllBook" target="main">书籍管理</a></dd>
                        <dd><a href="javascript:;">选项2</a></dd>
                        <dd><a href="">跳转</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">解决方案</a>
                    <dl class="layui-nav-child">
                        <dd><a href="">移动模块</a></dd>
                        <dd><a href="">后台模版</a></dd>
                        <dd><a href="">电商平台</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="">产品</a></li>
                <li class="layui-nav-item"><a href="">大数据</a></li>
            </ul>
        </div>
<%--            主内容--%>
        <div class="layui-col-md10 layui-col-sm10 maincontent">
            <!--默认展示欢迎页-->
            <iframe name="main" src="welcome.jsp" aria-hidden="true">

            </iframe>
        </div>
    </div>

</div>

</body>
</html>
<script>
    layui.use('element', function(){
        var element = layui.element;

        //…
    });
</script>
